| Disk ARchive 2.8.1 Full featured and portable backup and archiving tool

Loading...
Searching...
No Matches
database_listing_callback.hpp
Go to the documentation of this file.
1/*********************************************************************/
2// dar - disk archive - a backup/restoration program
3// Copyright (C) 2002-2025 Denis Corbin
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with this program; if not, write to the Free Software
17// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18//
19// to contact the author, see the AUTHOR file
20/*********************************************************************/
21
25
26#ifndef DATABASE_LISTING_CALLBACK_HPP
27#define DATABASE_LISTING_CALLBACK_HPP
28
29#include "../my_config.h"
30
31#include <string>
32#include "database_aux.hpp"
33#include "archive_num.hpp"
34#include "datetime.hpp"
35
36 namespace libdar
37{
38
41
43
48 using database_listing_show_files_callback = void (*) (void *context,
49 const std::string & filename,
50 bool available_data,
51 bool available_ea);
52
54
63 using database_listing_get_version_callback = void (*) (void *context,
64 archive_num num,
65 db_etat data_presence,
66 bool has_data_date,
67 datetime data,
68 db_etat ea_presence,
69 bool has_ea_date,
70 datetime ea);
71
72
74
81 using database_listing_statistics_callback = void (*) (void *context,
82 U_I number,
83 const infinint & data_count,
84 const infinint & total_data,
85 const infinint & ea_count,
86 const infinint & total_ea);
87
89
90} // end of namespace
91
92#endif
archive_num.hpp
class storing the position of an archive inside a database
libdar::archive_num
class archive_num stores the position of an archive inside a dar_manager database
Definition archive_num.hpp:47
libdar::datetime
stores time information
Definition datetime.hpp:59
libdar::infinint
the arbitrary large positive integer class
Definition real_infinint.hpp:62
database_aux.hpp
set of datastructures used to interact with a database object
datetime.hpp
this file contains the definition of class datetime that stores unix times in a portable way
libdar::database_listing_statistics_callback
void(*)(void *context, U_I number, const infinint &data_count, const infinint &total_data, const infinint &ea_count, const infinint &total_ea) database_listing_statistics_callback
called with teh information of statistics for each archive in turn
Definition database_listing_callback.hpp:81
libdar::database_listing_show_files_callback
void(*)(void *context, const std::string &filename, bool available_data, bool available_ea) database_listing_show_files_callback
called by the database::get_files() routine
Definition database_listing_callback.hpp:48
libdar::db_etat
db_etat
the status for a founded entry
Definition database_aux.hpp:55
libdar::database_listing_get_version_callback
void(*)(void *context, archive_num num, db_etat data_presence, bool has_data_date, datetime data, db_etat ea_presence, bool has_ea_date, datetime ea) database_listing_get_version_callback
called with the information of presence for an entry in archive number num
Definition database_listing_callback.hpp:63
my_config.h
include macro defined by the configure script and some specific additional ones
libdar
libdar namespace encapsulate all libdar symbols
Definition archive.hpp:47